package pattern.structural.decorator;

/**
 * @author: chaoyang.ren  
 * @date:Jul 4, 2017  
 * @time:2:21:09 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class SourceDecorator implements Sourceable {
	private Sourceable source;
	
	public SourceDecorator(Sourceable source){
		super();
		this.source = source;
	}
	
	public void method() {
		System.out.println("before decorate!");
		source.method();
		System.out.println("after decorate!");
	}

}

